package com.lhm.mapper;


import com.lhm.entity.BookType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


//类别
@Mapper
public interface BookTypeMapper {
    //全查询
    public List<BookType> findAll();
    //  添加
    public void  add(String type);
    // 修改
    public void update(@Param("id") int id, @Param("type") String type);
    //根据id查找
    public  BookType findById(Integer id);
}
